import http from '../http'
export default{
    getcountsystemMessage(type,params,callback){           //首页系统消息未读消息数量
        http.get(`/message/user/getcountsystemMessage/${type}`,{params},callback);
    },
    getMessageByUserIdAndType(url,params,callback){           //系统消息列表展示
        http.get('/message/user/getMessageByUserIdAndType'+url,{params},callback);
    },
    deleteMessageBytype(params,callback){           //系统消息清空
        http.delete('/message/user/deleteMessageBytype',{params},callback);
    },
    //改变会员系统消息状态为已读
    updateStatusByuserId(url,params,callback){
        http.put('/message/user/updateStatusByuserId/'+url,{params},callback);
    },
    getcountInteractionMessage(params,callback){           //首页互动消息未读消息数量
        http.get('/message/user/getcountInteractionMessage',{params},callback);
    },
    getMessageByUserId(url,params,callback){           //互动消息列表展示
        http.get('/message/user/getMessageByUserId'+url,{params},callback);
    },
    hdMessageClear(params,callback){           //互动消息清空(软删除)
        http.put('/message/user/deleteMessageByUpdateStatus',{params},callback);
    },

    deleteMessage(params,callback){           //互动消息清空(删除)
        http.delete('/message/user/deleteMessage',params,callback);
    },
     //根据消息Id改变消息状态为已读
    updateStatusById(url,params,callback){
        http.put('/message/user/updateStatusById/'+url,{params},callback);
    },
    updateStatusChat(url,params,callback){
        http.put('/message/user/updateStatusChat/'+url,{params},callback);
    },
    //查询统计未读的消息数量
    getCountUserMessage(params,callback){
        http.get('/message/user/getCountUserMessage',params,callback);
    },

    //查询未读会员对话消息
    listByChatAll(url,params,callback){
        http.get('/message/listByChatAll',params,callback);
    }


}